// 自动生成的菜单配置
// 生成时间: 2025-05-20 14:45:30

export default {
  "menu": [
     {
      "name": "库存管理",
      "el-iconClass": "el-icon-s-management",
      "able": true,
      "show": true,
      "tableName": "Product_new",
      "children": [
        {
          "name": "新谷仓库存分析",
          "el-iconClass": "el-icon-s-grid",
          "able": true,
          "show": true,
          "tableName": "Product_new"
        },
        // {
        //   "name": "谷仓库存分析(补货20天)",
        //   "el-iconClass": "el-icon-s-grid",
        //   "able": true,
        //   "show": true,
        //   "tableName": "Product"
        // },
        {
          "name": "橙联&谷仓 (补货20天)",
          "el-iconClass": "el-icon-s-grid",
          "able": true,
          "show": true,
          "tableName": "Product_cl_gc"
        },
        // {
        //   "name": "断货统计",
        //   "el-iconClass": "el-icon-s-grid",
        //   "able": true,
        //   "show": true,
        //   "tableName": "OutStockDetails"
        // },
        {
          "name": "区域库存",
          "el-iconClass": "el-icon-s-grid",
          "able": true,
          "show": true,
          "tableName": "ProductInventory"
        },
        {
          "name": "装箱订单",
          "el-iconClass": "el-icon-s-grid",
          "able": true,
          "show": true,
          "tableName": "ReceivingOrder"
        },
        {
          "name": "海外仓在途",
          "el-iconClass": "el-icon-s-grid",
          "able": true,
          "show": true,
          "tableName": "ReceivingOrderDetails"
        },
        {
          "name": "滨州仓库存",
          "el-iconClass": "el-icon-s-grid",
          "able": true,
          "show": true,
          "tableName": "YcReceivingOrderDetails"
        },
         {
          "name": "谷仓库龄",
          "el-iconClass": "el-icon-s-grid",
          "able": true,
          "show": true,
          "tableName": "ProductInventoryAge"
        },
      ]
    },
        {
      "name": '补货分析',
      "el-iconClass": "el-icon-user-solid",
      "able": true,
      "show": true,
      "tableName": 'ReStock_1',
      children: [
      {
        "name": "待审批补货单",
        "el-iconClass": "el-icon-s-custom",
        "able": true,
        "show": ()=>localStorage.getItem("user_type") != 'operator' ? true : false,
        "tableName": 'ReStock_1',

      },

      {
        "name": "已拒绝补货单",
        "el-iconClass": "el-icon-s-custom",
        "able": true,
        "show": ()=>localStorage.getItem("user_type") != 'operator' ? true : false,
        "tableName": 'ReStock_3',
      },

      {
        "name": "待下单补货单",
        "el-iconClass": "el-icon-s-custom",
        "able": true,
        "show": true,
        "tableName": 'ReStock_2',
      },

      {
        "name": "已下单补货单",
        "el-iconClass": "el-icon-s-custom",
        "able": true,
        "show": true,
        "tableName": 'ReStock_0',
      }

      // {
      //   "name": "竞品事件触发器",
      //   "el-iconClass": "el-icon-s-custom",
      //   "able": true,
      //   "show": true,
      //   "tableName": 'user',
      // },

      // {
      //   "name": "公司人员",
      //   "el-iconClass": "el-icon-user",
      //   "able": true,
      //   "show": true,
      //   "tableName": 'companyUser',
      // }
      ]
    },
    {
      "name": "销售管理",
      "el-iconClass": "el-icon-s-management",
      "able": true,
      "show": true,
      "tableName": "data_models",
      "children": [
        {
          "name": "谷仓提货订单",
          "el-iconClass": "el-icon-s-grid",
          "able": true,
          "show": true,
          "tableName": "GcOrder"
        },

        {
          'name':'断货分析',
          "el-iconClass": "el-icon-s-grid",
          "able": true,
          "show": true,
          "tableName": "OutStock"
        },
        {
          'name':'销量统计',
          "el-iconClass": "el-icon-s-grid",
          "able": true,
          "show": true,
          "tableName": "SelfUserOrder"
        },

        // {
        //   "name": "Mapinventorylocation",
        //   "el-iconClass": "el-icon-s-grid",
        //   "able": true,
        //   "show": true,
        //   "tableName": "MapInventoryLocation"
        // },
        {
          "name": "易仓订单",
          "el-iconClass": "el-icon-s-grid",
          "able": true,
          "show": true,
          "tableName": "Order"
        },
        {
          "name": "不修改库存",
          "el-iconClass": "el-icon-s-grid",
          "able": true,
          "show": true,
          "tableName": "Ignoreskus"
        },
        {
          "name": "退回订单",
          "el-iconClass": "el-icon-s-grid",
          "able": true,
          "show": true,
          "tableName": "ReturnOrder"
        }]},
      {
      "name": "关系管理",
      "el-iconClass": "el-icon-s-management",
      "able": true,
      "show": true,
      "tableName": "data_models",
      "children": [
        // {
        //   "name": "Platformskuinsetlog",
        //   "el-iconClass": "el-icon-s-grid",
        //   "able": true,
        //   "show": true,
        //   "tableName": "PlatformSkuInsetLog"
        // },
        {
          "name": "sku映射关系",
          "el-iconClass": "el-icon-s-grid",
          "able": true,
          "show": true,
          "tableName": "PlatformSkuRelation"
        },
        {
          "name": "易仓库存映射",
          "el-iconClass": "el-icon-s-grid",
          "able": true,
          "show": true,
          "tableName": "WarehouseSkuMap"
        },
        {
          "name": "人员关系",
          "el-iconClass": "el-icon-s-grid",
          "able": true,
          "show": true,
          "tableName": "SysUser"
        },
        {
          "name": "易仓产品映射",
          "el-iconClass": "el-icon-s-grid",
          "able": true,
          "show": true,
          "tableName": "YcProduct"
        },
        {
          "name": "sku统计",
          "el-iconClass": "el-icon-s-grid",
          "able": true,
          "show": true,
          "tableName": "TagStatistics"
        }
      ]},




    {
      "name": '竞品分析',
      "el-iconClass": "el-icon-user-solid",
      "able": true,
      "show": true,
      "tableName": 'MapCompeteListing',
      children: [
        {
          "name": "ebay竞品分析",
          "el-iconClass": "el-icon-s-custom",
          "able": true,
          "show": true,
          "tableName": 'ebay_MapCompeteListing',
        },
      {
        "name": "选品-竞品监控",
        "el-iconClass": "el-icon-s-custom",
        "able": true,
        "show": true,
        "tableName": 'MapCompeteListing',
      },

      {
        "name": "listing-竞品分析",
        "el-iconClass": "el-icon-s-custom",
        "able": true,
        "show": true,
        "tableName": 'lisitng_MapCompeteListing',
      },

      {
        "name": "商品-竞品分析",
        "el-iconClass": "el-icon-s-custom",
        "able": true,
        "show": true,
        "tableName": 'product_MapCompeteListing',
      },

      {
        "name": "商品-均值分析",
        "el-iconClass": "el-icon-s-custom",
        "able": true,
        "show": true,
        "tableName": 'product_aver_analyze',
      },

      // {
      //   "name": "竞品事件触发器",
      //   "el-iconClass": "el-icon-s-custom",
      //   "able": true,
      //   "show": true,
      //   "tableName": 'user',
      // },

      // {
      //   "name": "公司人员",
      //   "el-iconClass": "el-icon-user",
      //   "able": true,
      //   "show": true,
      //   "tableName": 'companyUser',
      // }
      ]
    },





    {

          "name": "Ebaystore",
          "el-iconClass": "el-icon-s-grid",
          "able": true,
          "show": true,
          "tableName": "Ebay 数据",
          children: [
            {
            "name": "ebay 店铺",
            "el-iconClass": "el-icon-s-grid",
            "able": true,
            "show": true,
            "tableName": "EbayStore",
            },

            // ebay 在线listing
            {
              "name": "在线listing",
              "el-iconClass": "el-icon-s-grid",
              "able": true,
              "show": true,
              "tableName": "EbayStore",
            },

            {
              "name": "自动化刊登",
              "el-iconClass": "el-icon-s-grid",
              "able": true,
              "show": true,
              "tableName": "EbayStore",
            },

            {
              "name": "自定义策略",
              "el-iconClass": "el-icon-s-grid",
              "able": true,
              "show": true,
              "tableName": "EbayStore",
            },
          ]
    },

    {

          "name": "Ebay 营销",
          "el-iconClass": "el-icon-s-grid",
          "able": true,
          "show": true,
          "tableName": "Ebay 营销",
          children: [
            {
            "name": "madkdown 折扣",
            "el-iconClass": "el-icon-s-grid",
            "able": true,
            "show": true,
            "tableName": "EbayStore",
            },

            // ebay 在线listing
            {
              "name": "批量折扣",
              "el-iconClass": "el-icon-s-grid",
              "able": true,
              "show": true,
              "tableName": "EbayStore",
            },
            {
              "name": "优惠券",
              "el-iconClass": "el-icon-s-grid",
              "able": true,
              "show": true,
              "tableName": "EbayStore",
            },
            {
              "name": "自动化刊登",
              "el-iconClass": "el-icon-s-grid",
              "able": true,
              "show": true,
              "tableName": "EbayStore",
            },

            {
              "name": "广告",
              "el-iconClass": "el-icon-s-grid",
              "able": true,
              "show": true,
              "tableName": "EbayStore",
            },

            {
              "name": "自定义策略",
              "el-iconClass": "el-icon-s-grid",
              "able": true,
              "show": true,
              "tableName": "EbayStore",
            },
          ]
    },

     {
      "name": '利润分析',
      "el-iconClass": "el-icon-user-solid",
      "able": true,
      "show": true,
      "tableName": 'MapCompeteListing',
      children: [
      {
        "name": "店铺利润分析",
        "el-iconClass": "el-icon-s-custom",
        "able": true,
        "show": true,
        "tableName": 'ShopStore_Profit',
      },

      {
        "name": "平台sku利润分析",
        "el-iconClass": "el-icon-s-custom",
        "able": true,
        "show": true,
        "tableName": 'Sku_Profit',
      },

      {
        "name": "listing利润分析",
        "el-iconClass": "el-icon-s-custom",
        "able": true,
        "show": true,
        "tableName": 'Lisitng_Profit',
      },

      // {
      //   "name": "竞品事件触发器",
      //   "el-iconClass": "el-icon-s-custom",
      //   "able": true,
      //   "show": true,
      //   "tableName": 'user',
      // },

      // {
      //   "name": "公司人员",
      //   "el-iconClass": "el-icon-user",
      //   "able": true,
      //   "show": true,
      //   "tableName": 'companyUser',
      // }
      ]
    },

    {
      "name": '流量分析',
      "el-iconClass": "el-icon-user-solid",
      "able": true,
      "show": true,
      "tableName": 'UserTrafficReport',
      children: [
      {
        "name": "人员流量分析",
        "el-iconClass": "el-icon-s-custom",
        "able": true,
        "show": true,
        "tableName": 'UserTrafficReport',
      },
      {
        "name": "店铺流量分析",
        "el-iconClass": "el-icon-s-custom",
        "able": true,
        "show": true,
        "tableName": 'StoreTrafficReport',
      },
      {
        "name": "sku流量分析",
        "el-iconClass": "el-icon-s-custom",
        "able": true,
        "tableName": 'SkuTrafficReport',
      },
      // {
      //   "name": "listing流量分析",
      //   "el-iconClass": "el-icon-s-custom",
      //   "able": true,
      //   "tableName": 'ListingTrafficReport',
      // },

      // {
      //   "name": "公司人员",
      //   "el-iconClass": "el-icon-user",
      //   "able": true,
      //   "show": true,
      //   "tableName": 'companyUser',
      // }
      ]
    },

    {
      "name": '统计分析',
      "el-iconClass": "el-icon-user-solid",
      "able": true,
      "show": ()=>['cmx', 'ZXY', 'LYL', "gx"].includes(localStorage.getItem("userName")),
      "tableName": 'UserOutStock',
      children: [
      {
        "name": "人员断货统计",
        "el-iconClass": "el-icon-s-custom",
        "able": true,
        "show": true,
        "tableName": 'UserOutStock',
      },
      {
        "name": "人员销量统计",
        "el-iconClass": "el-icon-s-custom",
        "able": true,
        "show": true,
        "tableName": 'UserOrder',
      },
      {
        "name": "系统人员",
        "el-iconClass": "el-icon-s-custom",
        "able": true,
        "show": ()=>['cmx'].includes(localStorage.getItem("userName")),
        "tableName": 'user',
      }
      // {
      //   "name": "公司人员",
      //   "el-iconClass": "el-icon-user",
      //   "able": true,
      //   "show": true,
      //   "tableName": 'companyUser',
      // }
      ]
    },
    {
      "name": "敏捷开发",
      "el-iconClass": "el-icon-setting",
      "tableName": "MenuConfig",
      "show": false,
      "able": true,
      "children": [
        {
          "name": "模型字段生成",
          "el-iconClass": "el-icon-edit",
          "tableName": "model_generate_column",
          "show": true,
          "able": true
        },
        {
          "name": "模型生成",
          "el-iconClass": "el-icon-edit",
          "tableName": "model_generate",
          "show": true,
          "able": true
        }
      ]
    },
    {
      "name": "系统配置",
      "el-iconClass": "el-icon-setting",
      "tableName": "system_config",
      "show": false,
      "able": true,
      "children": [
        {
          "name": "接口管理",
          "el-iconClass": "el-icon-connection",
          "tableName": "api_management",
          "show": true,
          "able": true
        }
      ]
    }
  ]
}

